/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.WebIDE.ejb.sessions;

import java.util.List;
import javax.ejb.Remote;
import javax.persistence.EntityManager;
import org.WebIDE.ejb.entities.Files;
import org.WebIDE.ejb.sessions.exceptions.*;

/**
 *
 * @author huy
 */
@Remote
public interface FilesFacadeRemote {

    public void create(Files files) throws PreexistingEntityException, RollbackFailureException, Exception;

    public void edit(Files files) throws NonexistentEntityException, RollbackFailureException, Exception;

    void remove(Files files);

    Files find(Object id);

    List<Files> findAll();
    public int getFilesCount();

    public EntityManager getEntityManager();

    public Files findFiles(Integer id);

    public List<Files> findFilesEntities(int maxResults, int firstResult);

    public List<Files> findFilesEntities();

    public void destroy(Integer id) throws NonexistentEntityException, RollbackFailureException, Exception;
}
